﻿using log4net;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Xml.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows; 
using System.Xml.Linq;
namespace WCFBase
{
    [ServiceContract]
    public interface IWCFService
    {
        [OperationContract]
        int DoWork(int a, int b);

        [OperationContract]
        int DoWork2(int a, int b);
    }

    public class WCFService : IWCFService
    {
        public int DoWork(int a, int b)
        {
            return a + b;
        }

        public int DoWork2(int a, int b)
        {
            return a - b;
        }
    }
}
